package top.happylaishop.shop.service;

import top.happylaishop.shop.dto.ShippingDto;
import top.happylaishop.shop.dto.UserDto;
import top.happylaishop.shop.utils.PageDto;
import top.happylaishop.shop.utils.resp.BaseResponse;
import top.happylaishop.shop.utils.resp.RestResponse;

public interface ShippingService {

    BaseResponse add(ShippingDto shipping, UserDto userDto);

    BaseResponse delete(Integer shippingId, UserDto currentUser);

    BaseResponse update(ShippingDto shippingDto, UserDto currentUser);

    RestResponse<ShippingDto> select(UserDto currentUser, Integer shippingId);

    RestResponse<PageDto<ShippingDto>> list(PageDto<ShippingDto> shippingDtoPageDto, UserDto currentUser);

    BaseResponse updateDefaultShipping(UserDto currentUserInfo, Integer shippingId);
}
